<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//修改完，就不能创建那么多的方法了
			function cat(name,age)
			{
				this.name=name;
				this.age=age;
				this.sayhello=fun;
			}
			function fun()
			{
				alert(this.name+"喵喵");
			}
			var cat1=new cat("戴阳",22);
			cat1.sayhello();
		</script>
	</head>
	<body>
	</body>
</html>